<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>工具集</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            color: #333;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        h1 {
            text-align: center;
            margin-bottom: 30px;
            color: #2c3e50;
        }
        
        .category-section {
            margin-bottom: 40px;
        }
        
        .category-title {
            font-size: 18px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 15px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
        }
        
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, 250px);
            gap: 20px;
            justify-content: start;
            max-width: calc(250px * 4 + 20px * 3);
        }
        
        .tool-card {
            background-color: white;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            width: 250px;
        }
        
        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        }
        
        .tool-card h2 {
            font-size: 16px;
            margin-bottom: 10px;
            color: #3498db;
        }
        
        .tool-card p {
            font-size: 14px;
            color: #666;
            margin-bottom: 15px;
            height: 40px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .btn {
            display: inline-block;
            background-color: #3498db;
            color: white;
            padding: 8px 16px;
            text-decoration: none;
            border-radius: 5px;
            font-size: 14px;
            transition: background-color 0.3s ease;
        }
        
        .btn:hover {
            background-color: #2980b9;
        }
        
        .btn-disabled {
            background-color: #95a5a6;
            color: #ecf0f1;
            cursor: not-allowed;
            pointer-events: none;
        }
        
        .btn-disabled:hover {
            background-color: #95a5a6;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>工具集</h1>
        
        <!-- 数据处理工具 -->
        <div class="category-section">
            <div class="category-title">文本处理</div>
            <div class="tools-grid">
                <div class="tool-card">
                    <h2>XML</h2>
                    <p>提供XML压缩、格式化、添加转义字符、去转义字符等功能</p>
                    <a href="xml-tool.html" class="btn">使用</a>
                </div>
                
                <div class="tool-card">
                    <h2>JSON</h2>
                    <p>提供JSON压缩、格式化、添加转义字符、去转义字符等功能</p>
                    <a href="json-tool.html" class="btn">使用</a>
                </div>
                
                <div class="tool-card">
                    <h2>YAML</h2>
                    <p>提供YAML压缩、格式化、添加转义字符、去转义字符等功能</p>
                    <a href="yaml-tool.html" class="btn">使用</a>
                </div>
                
                <div class="tool-card">
                    <h2>XML<-->JSON</h2>
                    <p>提供XML和JSON格式之间的相互转换功能</p>
                    <a href="xml-json-converter.html" class="btn">使用</a>
                </div>
            </div>
        </div>
        
        <!-- 时间类工具 -->
        <div class="category-section">
            <div class="category-title">时间</div>
            <div class="tools-grid">
                <div class="tool-card">
                    <h2>时间戳</h2>
                    <p>提供各种常见的时间转换计算功能</p>
                    <a href="time-tool.html" class="btn">使用</a>
                </div>
            </div>
        </div>
        
        <!-- 编码工具 -->
        <div class="category-section">
            <div class="category-title">编码</div>
            <div class="tools-grid">
                <div class="tool-card">
                    <h2>编码转换</h2>
                    <p>提供各种编码格式之间的转换功能</p>
                    <a href="encode-tool.html" class="btn">使用</a>
                </div>
            </div>
        </div>
    </div>
</body>
</html>